package com.spkj.srb.mybatisplus.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spkj.srb.mybatisplus.mapper.UserMapper;
import com.spkj.srb.mybatisplus.pojo.User;
import com.spkj.srb.mybatisplus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author spkj
 * @create 2022-06-06 17:53
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Override
    public List<User> selectAllByUserName(String name) {
        return baseMapper.selectAllByUserName(name);
    }
}
